package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedou.sdk.params.bean.RedpackageHistory;
import com.kedou.sdk.params.bean.RedpackageItem;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/6/5 0005.
 */

public class RedpackageResponseParams extends ResponseParams<RedpackageResponseParams.RedpackageResponseData> {

    public RedpackageResponseParams() {
        super();
    }

    protected RedpackageResponseParams(Parcel in) {
        super(in);
    }

    public static class RedpackageResponseData implements Parcelable {
        private String nickname;
        private String role_id;
        private String role_level;
        private String add_time_text;
        private String balance;
        private String hongbao_expiration_time;
        private String unaccepted_hongbao;
        private String withdraw_remark;
        private ArrayList<RedpackageItem> level_hongbao;
        private ArrayList<RedpackageItem> recharge_hongbao;
        private ArrayList<RedpackageHistory> hongbao_log;
        private int is_bind_zfb;
        private String real_name;
        private String zfb_account;
        private String[] withdraw_amount;

        public int getIs_bind_zfb() {
            return is_bind_zfb;
        }

        public void setIs_bind_zfb(int is_bind_zfb) {
            this.is_bind_zfb = is_bind_zfb;
        }

        public String getReal_name() {
            return real_name;
        }

        public void setReal_name(String real_name) {
            this.real_name = real_name;
        }

        public String getZfb_account() {
            return zfb_account;
        }

        public void setZfb_account(String zfb_account) {
            this.zfb_account = zfb_account;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getRole_id() {
            return role_id;
        }

        public void setRole_id(String role_id) {
            this.role_id = role_id;
        }

        public String getRole_level() {
            return role_level;
        }

        public void setRole_level(String role_level) {
            this.role_level = role_level;
        }

        public String getAdd_time_text() {
            return add_time_text;
        }

        public void setAdd_time_text(String add_time_text) {
            this.add_time_text = add_time_text;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getHongbao_expiration_time() {
            return hongbao_expiration_time;
        }

        public void setHongbao_expiration_time(String hongbao_expiration_time) {
            this.hongbao_expiration_time = hongbao_expiration_time;
        }

        public String getUnaccepted_hongbao() {
            return unaccepted_hongbao;
        }

        public void setUnaccepted_hongbao(String unaccepted_hongbao) {
            this.unaccepted_hongbao = unaccepted_hongbao;
        }

        public ArrayList<RedpackageItem> getLevel_hongbao() {
            return level_hongbao;
        }

        public void setLevel_hongbao(ArrayList<RedpackageItem> level_hongbao) {
            this.level_hongbao = level_hongbao;
        }

        public ArrayList<RedpackageItem> getRecharge_hongbao() {
            return recharge_hongbao;
        }

        public void setRecharge_hongbao(ArrayList<RedpackageItem> recharge_hongbao) {
            this.recharge_hongbao = recharge_hongbao;
        }

        public String getWithdraw_remark() {
            return withdraw_remark;
        }

        public void setWithdraw_remark(String withdraw_remark) {
            this.withdraw_remark = withdraw_remark;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public ArrayList<RedpackageHistory> getHongbao_log() {
            return hongbao_log;
        }

        public void setHongbao_log(ArrayList<RedpackageHistory> hongbao_log) {
            this.hongbao_log = hongbao_log;
        }

        public String[] getWithdraw_amount() {
            return withdraw_amount;
        }

        public void setWithdraw_amount(String[] withdraw_amount) {
            this.withdraw_amount = withdraw_amount;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.nickname);
            dest.writeString(this.role_id);
            dest.writeString(this.role_level);
            dest.writeString(this.add_time_text);
            dest.writeString(this.balance);
            dest.writeString(this.hongbao_expiration_time);
            dest.writeString(this.unaccepted_hongbao);
            dest.writeTypedList(this.level_hongbao);
            dest.writeTypedList(this.recharge_hongbao);
            dest.writeString(this.withdraw_remark);
            dest.writeInt(this.is_bind_zfb);
            dest.writeString(this.real_name);
            dest.writeString(this.zfb_account);
            dest.writeTypedList(this.hongbao_log);
            dest.writeStringArray(this.withdraw_amount);
        }

        protected RedpackageResponseData(Parcel in) {
            this.nickname = in.readString();
            this.role_id = in.readString();
            this.role_level = in.readString();
            this.add_time_text = in.readString();
            this.balance = in.readString();
            this.hongbao_expiration_time = in.readString();
            this.unaccepted_hongbao = in.readString();
            this.level_hongbao = in.createTypedArrayList(RedpackageItem.CREATOR);
            this.recharge_hongbao = in.createTypedArrayList(RedpackageItem.CREATOR);
            this.withdraw_remark = in.readString();
            this.is_bind_zfb = in.readInt();
            this.real_name = in.readString();
            this.zfb_account = in.readString();
            this.hongbao_log = in.createTypedArrayList(RedpackageHistory.CREATOR);
            in.readStringArray(this.withdraw_amount);
        }


        public static final Creator<RedpackageResponseData> CREATOR = new Creator<RedpackageResponseData>() {
            @Override
            public RedpackageResponseData createFromParcel(Parcel source) {
                return new RedpackageResponseData(source);
            }

            @Override
            public RedpackageResponseData[] newArray(int size) {
                return new RedpackageResponseData[size];
            }
        };
    }


}
